@extends('layouts.master')

@section('title')
    Nuevo usuario administrador
@stop

@section('content')

<!-- show form errors -->
{{ HTML::ul($errors->all()) }}

<!-- create admin user form -->
<div class="row">
        <div>
          <section class="panel">
            <div class="panel-body">
			{{ Form::open(array('url' => 'admins')) }}
				<input type="hidden" name="_token" value="<?php echo csrf_token(); ?>">
				
				<div class="form-group col-lg-4">
					{{ Form::label('username', 'Nombre de usuario') }}
					{{ Form::text('username', Input::old('username'), array('class' => 'form-control')) }}
				</div>
			
				<div class="form-group col-lg-4">
					{{ Form::label('password', 'Contraseña') }}
					{{ Form::password('password', array('class' => 'form-control')) }}
				</div>
				<div class="form-group col-lg-4">
					{{ Form::label('password_confirmation', 'Repetir contraseña') }}
					{{ Form::password('password_confirmation', array('class'=>'form-control')) }}
				</div>
			
				<div class="form-group" style="clear: both;">
					<a class="btn btn-default" href="{{ URL::to('admins') }}">&lt;&lt; Volver</a>
					{{ Form::submit('Guardar', array('class' => 'btn btn-primary')) }}
				</div>
			{{ Form::close() }}
			</div>
		</section>
	</div>
</div>
@stop